<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <h:head>
        <title>IGNORED</title>
        <h:messages errorClass="errors" layout="list" showDetail="true" showSummary="false"/>
    </h:head>
    <h:body>
        <ui:composition template="/WEB-INF/Templates/Template.xhtml">
            <ui:define name="content">
                <h3 align="center">#{tekster.RegDeltakerOverskrift}</h3>
                <h:form>
                    <div align="center">
                        <h:panelGrid columns="2" border="0">
                            <h:column>
                                <h:outputText value="#{tekster.VelgDeltaker}"/>
                            </h:column>
                            <h:column>
                                <h:selectOneMenu required="true" id="velgD" requiredMessage="#{tekster.req_deltaker}" value="#{rb.enDeltaker}" converter="#{DeltakerConverter}">
                                    <f:selectItems value="#{rb.deltakere.hentEnDeltaker()}"/>
                                </h:selectOneMenu>
                                <h:message for="velgD" errorClass="errors"/>
                            </h:column>
                            <h:column>
                                <h:outputText value="#{tekster.VelgLop}"/>
                            </h:column>
                            <h:column>
                                <h:selectOneMenu required="true" id="velgL" requiredMessage="#{tekster.req_lop}" value="#{rb.lopet}" converter="#{LopConverter}">
                                    <f:selectItems value="#{rb.hentBrukerLop()}"/>
                                </h:selectOneMenu>
                                <h:message for="velgL" errorClass="errors"/>
                            </h:column>
                            <h:column>
                                <h:outputText value="#{tekster.VelgKlasse}"/>
                            </h:column>
                            <h:column>
                                <h:selectOneMenu required="true" id="velgK" requiredMessage="#{tekster.req_klasse}" value="#{rb.klasse.alder_inndeling}">
                                    <f:selectItems value="#{lister.klasseInndelingSelectDB()}"/>
                                </h:selectOneMenu>
                                <h:message for="velgK" errorClass="errors"/>
                            </h:column>
                            <h:column><h:message for="velgKjonn" errorClass="errors"/></h:column>
                            <h:column>
                                <h:selectOneRadio value="#{rb.klasse.kjonn}" required="true" id="velgKjonn" requiredMessage="#{tekster.req_kjonn}">
                                    <f:selectItem id="item1" itemLabel="#{tekster.Mann}" itemValue="Herre" />
                                    <f:selectItem id="item2" itemLabel="#{tekster.Kvinne}" itemValue="Dame" />
                                </h:selectOneRadio>
                                <h:column></h:column>
                            </h:column>
                            <h:column>
                                <h:commandButton value="#{tekster.Tilbake}" action="/index" immediate="true"/>
                            </h:column>
                            <h:column>
                                <h:commandButton value="#{tekster.Send}" action="#{rb.regDeltakerPaaLop()}"/>   
                            </h:column>
                        </h:panelGrid>
                    </div>
                </h:form>               
            </ui:define>
        </ui:composition>
    </h:body>
</html>